; (function ($) {
    $.tankBattles = $.tankBattles || {};
    $.tankBattles.strategies = $.tankBattles.strategies || {};

    var direction = $.tankBattles.enum.direction;
    $.tankBattles.strategies.simpleTank = {
        move: function (dt) {
            var tank = this;
            if (tank.direction == direction.up) {
                tank.y -= tank.speed * dt;
            }
            else if (tank.direction == direction.left) {
                tank.x -= tank.speed * dt;
            }
            else if (tank.direction == direction.right) {
                tank.x += tank.speed * dt;
            }
            else if (tank.direction == direction.down) {
                tank.y += tank.speed * dt;
            }
        },
        cannotMove: function (dt) {
            var tank = this;
            tank.direction = Math.round(3 * Math.random());
            tank.fire();
        }
    };
})(epam = typeof epam !== "undefined" ? epam : {});
